From 10df66dd09fcb42ae6abf1f8ce00cbf92d5778e7 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 11 Aug 2009 14:52:50 +0000 Subject: [PATCH] Write description in Coastal Explorer. --- coastexp.c | 3 +++ reference/coastexp.ref2 | 1 + reference/coastexp.ref4 | 1 + 3 files changed, 5 insertions(+) diff --git a/coastexp.c b/coastexp.c index 691661275..73f408d71 100755 --- a/coastexp.c +++ b/coastexp.c @@ -588,6 +588,9 @@ ce_waypt_pr(const waypoint *wp) sprintf(xml_buffer, "%3.6f %c %3.6f %c", latitude, NorS, longitude, EorW); write_xml_entity(ofd, "\t\t", "Position", xml_buffer); write_optional_xml_entity(ofd, "\t\t", "Name", wp->shortname); + if (wp->description && wp->shortname && + strcmp(wp->description, wp->shortname)) + write_optional_xml_entity(ofd, "\t\t", "Description", wp->description); } static char * diff --git a/reference/coastexp.ref2 b/reference/coastexp.ref2 index b9385cbde..7344feaab 100644 --- a/reference/coastexp.ref2 +++ b/reference/coastexp.ref2 @@ -135,6 +135,7 @@ 34.884641 N 120.652026 W PTSALENT + A description of the Point Sal Entrance mark 34.896555 N 120.649124 W diff --git a/reference/coastexp.ref4 b/reference/coastexp.ref4 index b9385cbde..7344feaab 100644 --- a/reference/coastexp.ref4 +++ b/reference/coastexp.ref4 @@ -135,6 +135,7 @@ 34.884641 N 120.652026 W PTSALENT + A description of the Point Sal Entrance mark 34.896555 N 120.649124 W -- 2.30.2